package com.yangyao.microserviceoauth2.authority.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yangyao.microserviceoauth2.authority.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 权限表
 * 
 * @author yangyao
 * @email 742425545@qq.com
 * @date 2019-12-06 16:36:39
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> getPermissionsByUserId(@Param("userId")Long userId);
}
